package pack0619;

public class ZuoYe1 {
    public static void main(String[] args){
  /*      int i=1;
        for (int n=1;n<10;n++){
            i=2*(i+1);
        }
        System.out.println(i);*/
        //假定总桃子数是sum
        int sum=1;
        for (int i=1;i<10;i++){
            sum=2*(sum+1);
            System.out.println(sum);
        }
        System.out.println("总桃子数："+sum);
    }
}
